



import requests
#测试用例1
def test_org():
    res = requests.get(url="https://httpbin.ceshiren.com/get",params={"name":"hogwarts"})
    print(res.json()["url"])
    assert  res.json()["args"]["name"] == "hogwars"
#测试环境2
def test_ceshiren():
    res = requests.get("https://httpbin.ceshiren.com/get",params={"name":"hogwarts"})
    print(res.json()["url"])
    assert res.json()["args"]["name"] =="hogwarts"
test_org()
test_ceshiren()